package com.atguigu.day03.test;

import java.util.Scanner;

public class SwitchExer {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        //键盘输入一个分数,展示分数的等级
        System.out.println("请输入你的分数:");
        int number = sc.nextInt();

        switch (number / 10) {
            case 10,9:
                System.out.println("A");
                break;
            case 8:
                System.out.println("B");
                break;
            case 7:
                System.out.println("C");
                break;
            case 6:
                System.out.println("D");
                break;
            case 5,4,3,2,1,0:
                System.out.println("E");
                break;
            default:
                System.out.println("成绩输入有误,无法进行评级");
                break;

        }
    }
}
